﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TraCuuICD10.aspx.cs" Inherits="ToaThuoc_PAK.TraCuuICD10" %>
<%@ Register TagPrefix="uc1" TagName="menu" Src="~/UserControls/menu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="phongkhammenu" Src="~/UserControls/phongkhammenu.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Tra cứu ICD10</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="css/nghiepvuy.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
    function dienThongTin(tchandoan, ticd) {
        //alert("abc");
        //window.opener.document.getElementById("trieuchung").value=ticd;

        //window.opener.document.getElementById("icd").value=ticd;
        //window.opener.document.getElementById("chandoan").value=tchandoan;
        //window.close();

        if (window.opener.document.all("Danhmucgrid1:ChanDoan") != null) {
            window.opener.document.all("Danhmucgrid1:ChanDoan").value = tchandoan;
        }
        if (window.opener.document.all("Danhmucgrid1:ICD") != null) {
            window.opener.document.all("Danhmucgrid1:ICD").value = ticd;
        }
        if (window.opener.document.all("<%Response.Write(Request.QueryString["tcd"]);%>") != null) {
				    window.opener.document.all("<%Response.Write(Request.QueryString["tcd"]);%>").value = tchandoan;
				}
                if (window.opener.document.all("<%Response.Write(Request.QueryString["ticd"]);%>") != null) {
			        window.opener.document.all("<%Response.Write(Request.QueryString["ticd"]);%>").value = ticd;
				}
                if (window.opener) { window.opener.focus(); }
                window.close();

            }
            function confirmation(ma, ten) {
                var answer = confirm("Bạn có chắc chắn mã ICD " + ma + ", " + ten + " này không?");
                if (answer) {
                    document.getElementById("txtMaICD").value = ma;
                    document.getElementById("btnXoa").click();
                    //alert("Xóa d? li?u thành công!");
                }
                else {
                    //alert("Thanks for sticking around!")
                }
            }
            //-->
		</script>
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" method="post" runat="server">
		    <div align="center">
		        <P><asp:label id="Label2" runat="server">Chẩn đoán</asp:label><asp:textbox id="mabn" runat="server"></asp:textbox>&nbsp;
				<asp:label id="Label1" runat="server">Mã ICD</asp:label><asp:textbox id="txtMaICD" runat="server"></asp:textbox>&nbsp;
				<asp:button id="traCuuButton" accessKey="T" runat="server" Text="(T)ra cứu" onclick="traCuuButton_Click"></asp:button>&nbsp;
				<asp:button id="Button2" Visible=false runat="server" Text="Thêm mới" onclick="Button2_Click"></asp:button>&nbsp;
				<asp:button id="btnXoa" runat="server" Width="1px" Visible="false" onclick="btnXoa_Click"></asp:button><asp:literal id="ltrLenh" runat="server" EnableViewState="False"></asp:literal><asp:datagrid id="danhsach" runat="server" PageSize="20" AllowPaging="True" GridLines="Vertical"
					CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#999999" AutoGenerateColumns="False" onselectedindexchanged="danhsach_SelectedIndexChanged">
					<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
					<SelectedItemStyle Font-Bold="True" Wrap="False" ForeColor="White" BackColor="#008A8C"></SelectedItemStyle>
					<EditItemStyle Wrap="False"></EditItemStyle>
					<AlternatingItemStyle Wrap="False" BackColor="Gainsboro"></AlternatingItemStyle>
					<ItemStyle Wrap="False" ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
					<HeaderStyle Font-Bold="True" Wrap="False" ForeColor="White" BackColor="#000084"></HeaderStyle>
					<Columns>
						<asp:ButtonColumn Text="Chọn" ButtonType="PushButton" CommandName="Select"></asp:ButtonColumn>
						<asp:EditCommandColumn ButtonType="PushButton" UpdateText="Cập nhật" CancelText="Bỏ qua" EditText="Sửa"></asp:EditCommandColumn>
						<asp:ButtonColumn Text="X&#243;a" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
						<asp:TemplateColumn HeaderText="Tên Tiếng Việt">
							<ItemTemplate>
								<asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.vviet") %>'>
								</asp:Label>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox ID="TextBox1" runat="server" Width="650px" Text='<%# DataBinder.Eval(Container, "DataItem.vviet") %>'>
								</asp:TextBox>
							</EditItemTemplate>
						</asp:TemplateColumn>
						
						<asp:TemplateColumn HeaderText="M&#227; ICD">
							<ItemTemplate>
								<asp:Label ID="Label4" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cicd10") %>'>
								</asp:Label>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox ReadOnly="True" Width="50px" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.cicd10") %>' ID="Textbox1">
								</asp:TextBox>
							</EditItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="Tên Tiếng Anh">
							<ItemTemplate>
								<asp:Label ID="Label5" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.vanh") %>'>
								</asp:Label>
							</ItemTemplate>
							<EditItemTemplate>
								<asp:TextBox ID="TextBox2" runat="server" Width="650px" Text='<%# DataBinder.Eval(Container, "DataItem.vanh") %>'>
								</asp:TextBox>
							</EditItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Center" ForeColor="Black" BackColor="#999999" Mode="NumericPages"></PagerStyle>
				</asp:datagrid>
				<asp:Literal id="lenhDienThongTin" runat="server" EnableViewState="False"></asp:Literal></P>
		    </div>
			
		</form>
	</body>
</HTML>

